<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>哈哈</h1>
<form th:action="@{/update}" method="post">
    <input type="hidden" name="id" th:value="${list.id}">
    姓名：<input type="text" name="nam" th:value="${list.nam}"/><br/>
    密码：<input type="text" name="pwd"  th:value="${list.pwd}"/><br/>
    性别：
    <input type="radio" name="sex" th:value="1" th:attr="checked=${1 == list.sex?true:false}"/>男
    <input type="radio" name="sex" th:value="2" th:attr="checked=${2 == list.sex?true:false}"/>女<br/>
    生日：<input type="text" name="birth" th:value="${list.birth}==null?null:${#dates.format(list.birth,'yyyy/MM/dd')}"/><br/>
    <input type="submit" value="确定"/><br/>
</form>

</body>
<script>

</script>
</html>